#pragma once

#include "e2d/core/render/MaterialView.h"
#include "fxcc/imgui/Layer.h"

namespace e2d
{
	struct MaterialEditor :public fxcc::imgui::Layer
	{

		std::shared_ptr<e2d::MaterialView> m_Inst{ 0 };

		std::string m_InstPath;	

		MaterialEditor();

		void Load();

		void LoadLastEditPath();

		void LoadDefaultToken();

		void SaveLastEditPath();

		void SaveDefaultToken();

		void ViewFunc() override;

		void HandleFunc() override;

		void OnSave();

		void OnDestroy() override;

		static std::string CH_Path();

		static std::string Default_Effect_Path();

		static e2d::EffectToken& DefaultEffectToken();
	};
};